package com.gccloud.design.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.gccloud.design.common.InterfaceCommon;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @author SAC
 * @date 2021/05/19 15:30
 * @describe 接口配置实体
 */

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("接口配置实体")
@Accessors(chain = true)
@ToString(callSuper = true)
@TableName("dic_io_info")
public class InterfaceEntity extends InterfaceCommon {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("接口编码")
    private String ioCd;

    @ApiModelProperty("接口名称")
    private String ioName;

    @ApiModelProperty("接口类型1：客户端，2：服务端")
    private String ioType;

    @ApiModelProperty("接口url")
    private String url;

    @ApiModelProperty("脚本类型：1、xquery脚本2、groovy脚本")
    private Integer scriptType;

    @ApiModelProperty("接口解析脚本")
    private String scriptCode;

    @ApiModelProperty("模拟返回报文")
    private String mockRet;

    @ApiModelProperty("是否模拟接口 0：非模拟接口 1：模拟接口")
    private Integer isMock;

    @ApiModelProperty("接口入参")
    private String inPara;

    @ApiModelProperty("接口服务标识，即URL上具体哪个接口")
    private String serverCd;

    @ApiModelProperty("鉴权码")
    private String authenCode;

    @ApiModelProperty("消费端系统编码")
    private String consumerSysCode;

    @ApiModelProperty("服务端系统编码")
    private String serverSysCode;

    @ApiModelProperty("描述")
    private String comments;

}
